package com.example.springboot08.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "sid", type = IdType.AUTO)
    private Long sid;

    private String sname;

    private Integer age;

    private String sex;

    private Long snum;

    @Version
    private Integer version;

    @TableLogic
    private Integer delted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    private Long cid;


}
